class HouseItem:
    def __init__(self,name,area):
        self.name = name
        self.area = area
    def __str__(self):
        return "%s占地面积%.2f"%(self.name,self.area)

bed = HouseItem("床",4)
chest = HouseItem("衣柜",3)
table = HouseItem("餐桌",4)

print(bed)
print(chest)
print(table)
